<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>店铺在线客服列表页  - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/buy.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/collect.css" type="text/css" rel="stylesheet" />
<script src="${root}/u/js/pony.js" type="text/javascript"></script>

<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});

function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("请选择要删除的数据");
		return;
	}
	if(!confirm("确认删除")) {
		return;
	}
	var f = document.getElementById('tableForm');
	f.action="delete.jspx";
	f.submit();
}

function optSaveOrder() {
	var f = getTableForm();
	f.action="priority.jspx";
	f.submit();
}

function getTableForm(){
	return document.getElementById("tableForm");
}
</script>
</head>
<body>
[#include "../include/店铺页头顶栏.html"/]
<div class="w1168">
	[#include "店铺中心_导航.html"/]
	<div class="user_right">
        <div class="user_title2">商品在线客服列表<a href="${base}/customerService/add.jspx?storeId=${storeId!}" style="margin-right:5px;" class="fr">添加在线客服</a></div>  
		<div class="clear10"></div> 
            
        <form id="tableForm" method="post">
        <!--
        <div class="listtool list_head">
        -->
        <div>
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#cccccc" style="font-size:12px;">
        <tr>
        <td width="30" height="30" align="center" bgcolor="#f0f0f0"><input type='checkbox' onclick='Pn.checkbox("ids",this.checked)'/></td>
        <td align="center" bgcolor="#f0f0f0">客服昵称</td>
        <td width="150" align="center" bgcolor="#f0f0f0">QQ号</td>
        <td width="165" align="center" bgcolor="#f0f0f0">排序</td>
        <td width="100" align="center" bgcolor="#f0f0f0">禁用</td>
        <td width="150" align="center" bgcolor="#f0f0f0">操作选项</td>
        </tr>
        </table>
        </div>
        [@customerService_page storeId=store.id count='20' orderby='4']
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
        [#if tag_list?size gt 0]
        [#list tag_list as customerService]
        <tr>
        <td width="30" height="44" align="center"><input type="checkbox" name="ids" value="${customerService.id}"/></td>
        <td align="center">${customerService.name!}</td>
        <td width="150" align="center">${customerService.content!}<input type="hidden" name="wids" value="${customerService.id}"/></td>
        <td width="165" align="center">
        <input type="text" name="priority" value="${customerService.priority!10}"/ style="text-align:center; border:1px solid #888888;">
        </td>
        <td width="100" align="center">${customerService.disable!?string('是','否')}</td>
        <td width="150" align="center"><a href="edit.jspx?id=${customerService.id}&pageNo=${pageNo}" style="color:#005fa2;">修改</a> |
        <a href="delete.jspx?ids=${customerService.id}&pageNo=${pageNo}" style="color:#005fa2;">删除</td>
        </tr>
        <tr>
        <td height="1" colspan="6" bgcolor="#e7e7e7"></td>
        </tr>
        [/#list]
        [#else]
        <div align="center">暂无数据</div>
        [/#if]
        </table>
        <div class="clear10"></div>
        <div align="center">[@pagination_style sysPage='3'/]</div>
        [/@customerService_page]
        <div align="left"><input type="button" value="删除" onclick="optDelete();" class="menu_ok"/>
<input type="button" value="保存排序顺序" onclick="optSaveOrder();" class="menu_ok2"/></div>
        </form>
	</div>
	<div class="clear10"></div>
    <div class="clear10"></div>
</div>
[#include "../include/页脚信息栏.html"/]
</body>
</html>